<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>绑定值</title>
    </head>
    <body>
        <!-- <div id = "app">
            单选按钮
            <input type="radio" v-model = "picked" :value = "value">
            <label>单选按钮</label>
            <p>{{ picked }}</p>
            <p>{{ value }}</p>
        </div>
        <script src = "https://unpkg.com/vue/dist/vue.min.js"></script>
        <script>
            var app = new Vue({
                el:"#app",
                data:{
                    picked:false,
                    value:123
                }
            })
        </script> -->

<!-- 
        复选框
        <div id = "app">
            <input type="checkbox" v-model = "toggle" :true-value = "value1" :false-value = "value2">
            <label>复选框</label>
            <p>{{ toggle }}</p>
            <p>{{ value1 }}</p>
            <p>{{ value2 }}</p>
        </div>
        <script src = "https://unpkg.com/vue/dist/vue.min.js"></script>
        <script>
            var app = new Vue({
                el:"#app",
                data:{
                    toggle:"false",
                    value1:"a",
                    value2:"b"
                }
            })
        </script> -->


        <!-- 选择列表 -->
        <div id = "app">
            <select v-model = "selected">
                <option :value="{ number:123 }">123</option>
            </select>
            {{ selected.number }}
        </div>
        <script src = "https://unpkg.com/vue/dist/vue.min.js"></script>
        <script>
            var app = new Vue({
                el:"#app",
                data:{
                    selected:''
                }
            })
        </script>
    </body>
</html>